<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>生涯详情</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/common.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/member.css"/>
    <script type="text/javascript" src="../../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../../script/swiper.min.js"></script>
    <script type="text/javascript" src="../../script/mobile.js"></script>
    <script type="text/javascript">
        window['adaptive'].desinWidth = 750;
        window['adaptive'].baseFont = 28;
        window['adaptive'].maxWidth = 750;
        window['adaptive'].init();
    </script>
</head>
<body>
<div id="header" style="height: 0.9rem; background: #fff; position: fixed; top: 0;left: 0; width: 100%; z-index: 99">
    <header class="header header-shadow">
        <div class="header-left">
            <div tapmode onclick="comeBack();" class="nav-left"><img class="icon-back" src="../../icon/icon-back.png"/>
            </div>
        </div>
        <h2 id="playerName">杨旭</h2>
    </header>
</div>

<div class="mescroll" id="mescroll" style="padding-top: 1.6rem"></div>

<section class="html_section pb40">
    <ul class="sy_list" id="sy_list">
        <!--<li>
            <div class="sy_time pl30 pr30 c-999 f24"><span>2018/2019</span>
                <div class="line_center"><span>友谊赛</span><span class="ml30">天津天海</span></div>
            </div>
            <div class="bb flex_Box pb20 pt10">
                <div class="w25">
                    <span class="c-999 f24">出场/首发</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">场均时间</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">出场时间</span>
                    <span class="mt5">4500`</span>
                </div>
            </div>
            <h3 class="mt30 pl30">进攻</h3>
            <div class="bb flex_Box flex_wrap pt20 pb20">
                <div class="w25">
                    <span class="c-999 f24">得分</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">篮板</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">助攻</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">效率</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">两双</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">三双</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">得分30+</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">篮板20+</span>
                    <span class="mt5">4500`</span>
                </div>
            </div>
            <h3 class="mt30 pl30">出手</h3>
            <div class="bb flex_Box flex_wrap pt20 pb20">
                <div class="w25">
                    <span class="c-999 f24">两分命中率</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">两分出手</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">两分命中</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">两分打铁</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">三分命中率</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">三分出手</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">三分命中</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">三分打铁</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">罚球命中率</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">罚球出手</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">罚球命中</span>
                    <span class="mt5">4500`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">罚球打铁</span>
                    <span class="mt5">4500`</span>
                </div>
            </div>
            <h3 class="mt30 pl30">防守</h3>
            <div class="bb flex_Box flex_wrap pt20 pb20">
                <div class="w25">
                    <span class="c-999 f24">抢断</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">盖帽</span>
                    <span class="mt5">90`</span>
                </div>
            </div>
            <h3 class="mt30 pl30">纪律</h3>
            <div class="bb flex_Box flex_wrap pt20 pb20">
                <div class="w25">
                    <span class="c-999 f24">失误</span>
                    <span class="mt5">52/52</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">犯规</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">黄牌</span>
                    <span class="mt5">90`</span>
                </div>
                <div class="w25">
                    <span class="c-999 f24">红牌</span>
                    <span class="mt5">1</span>
                </div>
            </div>
        </li>-->


    </ul>
</section>

</body>
</html>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
    var player_id = '';//队员id
    var player_name = '';//队员名称
    var player_stype = '';//队员类型，篮球 足球
    apiready = function () {

        setFixStatusBar(); //设置状态栏
        pop.loading();
        keybackListener()
        player_id = api.pageParam.player_id;
        player_name = api.pageParam.player_name;
        player_stype = api.pageParam.player_stype;

        $("#playerName").html(player_name);

        getMemberCareer()

    }

    //获取队员生涯信息
    function getMemberCareer() {
        var param = {
            token: $api.getStorage('token'),
            player_id: player_id,//队员id
        }
        getAjax(Interface.get_career, param, function (res) {

            var data = res.data;

            if (isDefine(data)) {
                var listHtml = '';
                if (player_stype == 1) {
                    for (var i = 0; i < data.length; i++) {
                        var info = data[i];
                        if(info.site_time != '-'){
                            var site_time = info.site_time + '\'';
                        }else {
                            var site_time = info.site_time;
                        }
                        if(info.out_time != '-'){
                            var out_time = info.out_time + '\'';
                        }else {
                            var out_time = info.out_time;
                        }
                        listHtml += '<li>' +
                            '            <div class="sy_time pl30 pr30 c-999 f24"><span>' + info.season_start + '/' + info.season_end + '</span>' +
                            '                <div class="line_center"><span>' + info.match_title + '</span><span class="ml30">' + info.team_title + '</span></div>' +
                            '            </div>' +
                            '            <div class="bb flex_Box pb20 pt10">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">出场/首发</span>' +
                            '                    <span class="mt5">' + info.appearance_starting + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">场均时间</span>' +
                            '                    <span class="mt5" style="font-family: Arial;">' + site_time + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">出场时间</span>' +
                            '                    <span class="mt5" style="font-family: Arial;">' + out_time + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">进攻</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">得分</span>' +
                            '                    <span class="mt5">' + info.score + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">篮板</span>' +
                            '                    <span class="mt5">' + info.backboard + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">助攻</span>' +
                            '                    <span class="mt5">' + info.assists + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">效率</span>' +
                            '                    <span class="mt5">' + info.efficiency + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">两双</span>' +
                            '                    <span class="mt5">' + info.two_pairs + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">三双</span>' +
                            '                    <span class="mt5">' + info.three_double + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">得分30+</span>' +
                            '                    <span class="mt5">' + info.thirty_jia + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">篮板20+</span>' +
                            '                    <span class="mt5">' + info.twenty_jia + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">出手</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">两分命中率</span>' +
                            '                    <span class="mt5">' + info.two_rate + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">两分出手</span>' +
                            '                    <span class="mt5">' + info.two_out + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">两分命中</span>' +
                            '                    <span class="mt5">' + info.two_hit + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">两分打铁</span>' +
                            '                    <span class="mt5">' + info.two_iron + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">三分命中率</span>' +
                            '                    <span class="mt5">' + info.three_rate + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">三分出手</span>' +
                            '                    <span class="mt5">' + info.three_out + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">三分命中</span>' +
                            '                    <span class="mt5">' + info.three_hit + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">三分打铁</span>' +
                            '                    <span class="mt5">' + info.three_iron + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">罚球命中率</span>' +
                            '                    <span class="mt5">' + info.penalty_rate + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">罚球出手</span>' +
                            '                    <span class="mt5">' + info.penalty_out + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">罚球命中</span>' +
                            '                    <span class="mt5">' + info.penalty_hit + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">罚球打铁</span>' +
                            '                    <span class="mt5">' + info.penalty_iron + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">防守</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">抢断</span>' +
                            '                    <span class="mt5">' + info.steals + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">盖帽</span>' +
                            '                    <span class="mt5">' + info.block_shot + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">纪律</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">失误</span>' +
                            '                    <span class="mt5">' + info.an_error + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">犯规</span>' +
                            '                    <span class="mt5">' + info.foul + '</span>' +
                            '                </div>' +
                            // '                <div class="w25">' +
                            // '                    <span class="c-999 f24">黄牌</span>' +
                            // '                    <span class="mt5">' + info.yellow_card + '</span>' +
                            // '                </div>' +
                            // '                <div class="w25">' +
                            // '                    <span class="c-999 f24">红牌</span>' +
                            // '                    <span class="mt5">' + info.red_card + '</span>' +
                            // '                </div>' +
                            // '            </div>' +
                            '        </li>';
                    }
                } else if (player_stype == 2) {
                    for (var i = 0; i < data.length; i++) {
                        var info = data[i];
                        if(info.site_time != '-'){
                            var site_time = info.site_time + '\'';
                        }else {
                            var site_time = info.site_time;
                        }
                        if(info.out_time != '-'){
                            var out_time = info.out_time + '\'';
                        }else {
                            var out_time = info.out_time;
                        }
                        listHtml += '<li>' +
                            '            <div class="sy_time pl30 pr30 c-999 f24"><span>' + info.season_start + '/' + info.season_end + '</span>' +
                            '                <div class="line_center"><span>' + info.match_title + '</span><span class="ml30">' + info.team_title + '</span></div>' +
                            '            </div>' +
                            '            <div class="bb flex_Box pb20 pt10">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">出场/首发</span>' +
                            '                    <span class="mt5">' + info.appearance_starting + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">场均时间</span>' +
                            '                    <span class="mt5" style="font-family: Arial;">' + site_time + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">出场时间</span>' +
                            '                    <span class="mt5" style="font-family: Arial;">' + out_time + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">进攻</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">进球</span>' +
                            '                    <span class="mt5">' + info.goal + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">场均进球</span>' +
                            '                    <span class="mt5">' + info.site_goal + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">每球耗时</span>' +
                            '                    <span class="mt5" style="font-family: Arial;">' + info.ball_time + '\'</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">被犯规</span>' +
                            '                    <span class="mt5">' + info.cover_foul + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">射门</span>' +
                            '                    <span class="mt5">' + info.shoot + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">射正率</span>' +
                            '                    <span class="mt5">' + info.shoot_just_rate + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">越位</span>' +
                            '                    <span class="mt5">' + info.offside + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">传球</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">助攻</span>' +
                            '                    <span class="mt5">' + info.assists + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">关键传球</span>' +
                            '                    <span class="mt5">' + info.crux_pass + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">传球总数</span>' +
                            '                    <span class="mt5">' + info.pass_all + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">传球成功率</span>' +
                            '                    <span class="mt5">' + info.pass_rate + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">防守</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">场均抢断</span>' +
                            '                    <span class="mt5">' + info.site_steals + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">场均拦截</span>' +
                            '                    <span class="mt5">' + info.site_intercept + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">场均解围</span>' +
                            '                    <span class="mt5">' + info.site_relieve + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '            <h3 class="mt30 pl30">纪律</h3>' +
                            '            <div class="bb flex_Box flex_wrap pt20 pb20">' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">犯规</span>' +
                            '                    <span class="mt5">' + info.foul + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">黄牌</span>' +
                            '                    <span class="mt5">' + info.yellow_card + '</span>' +
                            '                </div>' +
                            '                <div class="w25">' +
                            '                    <span class="c-999 f24">红牌</span>' +
                            '                    <span class="mt5">' + info.red_card + '</span>' +
                            '                </div>' +
                            '            </div>' +
                            '        </li>';
                    }
                }

                $("#sy_list").html(listHtml)
            } else {
                $("#sy_list").html(noData)
            }
            pop.close();
        }, function (error) {
            pop.notice(error.msg);
            pop.close();
        })
    }


</script>
